package com.traffic.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.traffic.mapper.PerOuoutSourcingMapper;
import com.traffic.domain.PerOuoutSourcing;
import com.traffic.service.IPerOuoutSourcingService;

/**
 * 外聘人员Service业务层处理
 * 
 * @author 郭世纪
 * @date 2024-12-08
 */
@Service
public class PerOuoutSourcingServiceImpl implements IPerOuoutSourcingService 
{
    @Autowired
    private PerOuoutSourcingMapper perOuoutSourcingMapper;

    /**
     * 查询外聘人员
     * 
     * @param id 外聘人员主键
     * @return 外聘人员
     */
    @Override
    public PerOuoutSourcing selectPerOuoutSourcingById(Long id)
    {
        return perOuoutSourcingMapper.selectPerOuoutSourcingById(id);
    }

    /**
     * 查询外聘人员列表
     * 
     * @param perOuoutSourcing 外聘人员
     * @return 外聘人员
     */
    @Override
    public List<PerOuoutSourcing> selectPerOuoutSourcingList(PerOuoutSourcing perOuoutSourcing)
    {
        return perOuoutSourcingMapper.selectPerOuoutSourcingList(perOuoutSourcing);
    }

    /**
     * 新增外聘人员
     * 
     * @param perOuoutSourcing 外聘人员
     * @return 结果
     */
    @Override
    public int insertPerOuoutSourcing(PerOuoutSourcing perOuoutSourcing)
    {
        return perOuoutSourcingMapper.insertPerOuoutSourcing(perOuoutSourcing);
    }

    /**
     * 修改外聘人员
     * 
     * @param perOuoutSourcing 外聘人员
     * @return 结果
     */
    @Override
    public int updatePerOuoutSourcing(PerOuoutSourcing perOuoutSourcing)
    {
        return perOuoutSourcingMapper.updatePerOuoutSourcing(perOuoutSourcing);
    }

    /**
     * 批量删除外聘人员
     * 
     * @param ids 需要删除的外聘人员主键
     * @return 结果
     */
    @Override
    public int deletePerOuoutSourcingByIds(Long[] ids)
    {
        return perOuoutSourcingMapper.deletePerOuoutSourcingByIds(ids);
    }

    /**
     * 删除外聘人员信息
     * 
     * @param id 外聘人员主键
     * @return 结果
     */
    @Override
    public int deletePerOuoutSourcingById(Long id)
    {
        return perOuoutSourcingMapper.deletePerOuoutSourcingById(id);
    }
}
